package org.lsystem.controller;

import lombok.extern.slf4j.Slf4j;
import org.lsystem.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Slf4j
@RestController
public class TestController {


    private static final Logger logger = LoggerFactory.getLogger("lk.system");

    @Autowired
    TestService testService;

    @GetMapping("test1")
    public Map<String,String> test1(){
        logger.error("aaaa");
//        log.error("aaaaa");
        Map<String,String> map = new HashMap<>();
        map.put("t1","t1");
        return map;
    }
}
